<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', 'IndexController@index');
Route::get('redis', 'RedisController@index');//redis测试

Route::get('excel/export', 'ExcelController@export');//excel导出
Route::get('excel/import', 'ExcelController@import');//excel导入

//测试
Route::group(['namespace' =>'Tests' , 'prefix' => 'tests'],function(){
    Route::get('testget','IndexController@testGet');//普通get测试
    Route::get('testsession','IndexController@testSession');//普通session测试

});
Route::get('post/create', 'PostController@create');

Route::post('post', 'PostController@store');

Route::get('data', 'DataController@index');